/**
 * @author Jon Adams
 */
package org.osflash.signals.natives.sets;

import org.osflash.signals.natives.NativeSignal;
import flash.events.AsyncErrorEvent;
import flash.events.NetStatusEvent;
import flash.events.SyncEvent;
import flash.net.SharedObject;

class SharedObjectSignalSet extends EventDispatcherSignalSet {
	public var asyncError(getAsyncError, never) : NativeSignal;
	public var netStatus(getNetStatus, never) : NativeSignal;
	public var sync(getSync, never) : NativeSignal;

	public function new(target : SharedObject) {
		super(target);
	}

	public function getAsyncError() : NativeSignal {
		return getNativeSignal(AsyncErrorEvent.ASYNC_ERROR, AsyncErrorEvent);
	}

	public function getNetStatus() : NativeSignal {
		return getNativeSignal(NetStatusEvent.NET_STATUS, NetStatusEvent);
	}

	public function getSync() : NativeSignal {
		return getNativeSignal(SyncEvent.SYNC, SyncEvent);
	}

}

